<!-- 
    @author Wójcik Karol <wojcikk@student.agh.edu.pl>
    @licence http://www.gnu.org/copyleft/gpl.html GNU/GPL
-->

<%= error_messages_for 'major' %>

<!--[form:major]-->
<p><label for="major_name">Nazwa</label><br/>
<%= text_field 'major', 'name'  %></p>
<p><label for="major_study_type_id">Typ studiow</label><br/>
<%=  select("major", "study_type_id", StudyType.find(:all).collect {|p| [ p.name, p.id ] },  {:include_blank => true}) %></p>
<p><label for="major_faculty_id">Wydzia&#322;</label><br/>
<%=  select("major", "faculty_id", Faculty.find(:all).collect {|p| [ p.name, p.id ] },  {:include_blank => true}) %></p>

<!--[eoform:major]-->

